home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / cuj0593.zip / 1105094A < prev    next >
Text File  |  1993-05-16  |  375b  |  22 lines

  1. #include <fcntl.h>
  2. #include <sys\stat.h>
  3. #include <dos.h>
  4. #include <io.h>
  5. #include <stdio.h>
  6. void main()
  7.     {
  8.     int file;
  9.     int count_written;
  10.     file = _open("TEMP", O_RDWR);
  11.     if (file < 0)
  12.         {
  13.         printf("Error %d in file open\n", errno);
  14.         perror("");
  15.         }
  16.     count_written = _write(file,&file,0);
  17.     printf("Count written %d", count_written);
  18.     _close(file);
  19.     }
  20.  
  21.  
  22.